package com.shiroha.user.pojo.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.UUID;

@Data
public class ChatGroupVO {

    private String name;
    @Pattern(regexp = "^(http://www\\.|https://www\\.|http://|https://)?[a-z0-9]+([\\-.]{1}[a-z0-9]+)*\\.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$", message = "Invalid URL format")
    private String avatar;

    private String description;
    @Size(min = 2, max = 50)
    @JsonProperty("member_ids")
    private UUID[] memberIds;
}
